/*
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 *
 * Copyright @2008 the original author or authors.
 */
package com.bluestone.report;

import com.bluestone.core.IAction;

/**
 * IActionHandler is the interface implemented by the invocation handler of a proxy instance. 
 * @author <a href="mailto:ming7655@gmail.com">Aaron</a>
 */
public interface IActionHandler extends IExpAttributeHandler{
	public static String POST = "POST";
	public static String PREP = "PREP";
	public static String PREP_POST="PREP_POST";
	/**
	 * Processes a action on a ActionProxy instance.
	 * @param action
	 */
	public void process(IAction action);
	/**
	 * The type of the IActionHandler defines where to process the method of the process(IAction) when invoke the IAction.exectue().
	 * @return type - String
	 */
	public String getType();
	/**
	 * Defines the IAction of the IActionHandler.
	 * @return IAction
	 */
	public IAction getAction();
	/**
	 * Some infomation will be handler after processes the method of the process(IAction).
	 *
	 */
	public void report();
}
